
typedef struct {
  unsigned char cmd;         //显示命令
  unsigned char count;       //显示命令执行次数
                             ////周期分1秒和500毫秒
  unsigned char index;       //闪烁位数
  char led[5];               //显示数字
  void (*timeout_handle)();  //定时回调函数
} sLEDData;

enum {
  dispcmd_none,     //没有显示命令
  disp_time,        //显示时间
  disp_num,         //显示号码
  disp_notwinkle,   //正常显示
  disp_twinkle,     //闪烁显示
  disp_twinkleing,  //闪烁中
  disp_delay,       //延时显示
  disp_cmdfinish,   //设置完成
  disp_factory,     //出厂模式显示
};

void disp_off(void);
unsigned char find_dispnum(unsigned short num);
void remove_dispnum_all(void);
unsigned char remove_dispnum(unsigned short num);
extern struct process Disp_Process;
extern struct process DispLed_Process;
